const express = require('express')

// const cors = require('cors')


const app = express()


// 后端解决

// app.use(cors())


app.get('/home', (req, res) => {

    res.send([
        {
            "id": 3,
            "name": "鞋",
            "price": 25.4
        },
        {
            "id": 4,
            "name": "头发",
            "price": 19900
        },
    ])
})



app.listen(4001, () => {
    console.log('server 启动')
})